// 费用类别
import request from "@/api/request";

// 分页查询费用类别
export const selete_cg = (params) => {
    return request({
      url: "/fundmanage/fcc/selectAll",
      method: "post",
      data: params,
    //   headers: { "Content-Type": "application/json" },
    });
  };

//   逻辑删除费用类别
export const delete_cg = (params) => {
    return request({
      url: "/fundmanage/fcc/delete/"+params,
      method: "post",
    //   headers: { "Content-Type": "application/json" },
    });
  };

//   新增费用类别
export const add_cg = (params) => {
    return request({
      url: "/fundmanage/fcc/insert",
      method: "post",
      data: params,
      headers: { "Content-Type": "application/json" },
    });
  };

//   查询费用类别详细信息
export const detals_cg = (params) => {
    return request({
      url: "/fundmanage/fcc/selectDetails/"+params,
      method: "post",
    //   headers: { "Content-Type": "application/json" },
    });
  };

//   查询所有费用类别
export const selectall_cg = () => {
    return request({
      url: "/fundmanage/fcc/selectIdName",
      method: "post",
      headers: { "Content-Type": "application/json" },
    });
  };

//   修改费用类别详细信息
export const update_cg = (params) => {
    return request({
      url: "/fundmanage/fcc/update",
      method: "post",
      data:params,
      headers: { "Content-Type": "application/json" },
    });
  };
